package com.u2ds.dss.entity.sys;


import com.u2ds.core.entity.BaseEntity;
import lombok.Data;
import javax.persistence.Table;
import javax.persistence.Column;
import javax.persistence.Transient;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @Author mybatis-CodeGenerator
 * @date 2017-05-27 11:37:45
 *
 **/
@Table(name="sys_resources")
@Data
public class  SysResources extends BaseEntity {
		/**资源类型**/
	@Column(name="resource_type")
	private String  resourceType;
	/**资源名称**/
	@Column(name="resource_name")
	private String  resourceName;
	/**资源描述**/
	@Column(name="resource_desc")
	private String  resourceDesc;
	/**资源路径**/
	@Column(name="resource_path")
	private String  resourcePath;
	/**资源上级ID**/
	@Column(name="resource_parent")
	private String  resourceParent;
	/**是否可用，1可用，0不可用**/
	@Column(name="enable")
	private Integer  enable;
	/**资源icon**/
	@Column(name="resource_icon")
	private String  resourceIcon;
	/**排序**/
	@Column(name="order_no")
	private Integer  orderNo;
	/**资源等级**/
	@Column(name="resource_level")
	private Integer  resourceLevel;
	/**button样式**/
	@Column(name="btn_style")
	private String  btnStyle;
	/**按钮位置**/
	@Column(name="btn_index")
	private Integer  btnIndex;

	@Transient
	private String ResourceParentUpdate;

	@Transient
	private String btnOptions;

	@Transient
	private String parentName;
	@Transient
	private List<SysResources> children=new ArrayList<>();
	@Transient
	private String title;
	@Transient
	private boolean expanded;
	@Transient
	private boolean folder;
}